package org.csu.mypetstoreplus.persistence;

import org.csu.mypetstoreplus.entity.Sequence;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SequenceDao extends JpaRepository<Sequence, Integer> {
    @Query(value = "select * from sequence where name =?1 limit 1", nativeQuery = true)
    Sequence findByName(String name);
}
